package com.food.service;

import com.food.entity.pojo.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2025-07-03
 */
@Service
public interface OrderService extends IService<Order> {
    List< Order> getAllOrders();
    Order getOrderById(Integer id);
    void createOrder(Order order);
    void updateOrder(Order order);
    void deleteOrder(Integer id);

    List<Order> getOrdersByUserId(Integer userId);
}
